
// const os = require("os")
// const men = os.freemem() / os.totalmem() * 100;
// console.log('内存', men.toFixed(2) + '%');


const downloads = require('download-git-repo');
const ora = require('ora');
const process = ora('🔥下载....');
console.log('02-download', downloads);
process.start();// 下载loading
downloads('github:delbug/vue3docs', './test', (err) => {
    console.log(err ? 'error' : 'success');
    if (err) {
        process.fail()
    } else {
        process.succeed()
    }
});





